﻿@model IEnumerable<KRM.Core.vWebTicketAudit>

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
    <h4>Action history</h4>
</div>
<div class="modal-body" style="padding-bottom: 0px;">
    @foreach (var item in Model)
    {
        <div class="row-fluid ticket-comment-row" style="border-bottom: 1px dotted #DDD;">
            <div class="span2"style="text-align: right;">
                <img alt="" src="/Upload/Avatar/@(item.Avatar ?? "avatar-default.jpg")" style="text-align: center; height: 40px; max-width: 40px; background-color: #ddd !important;">
            </div>
            <div class="span10">
                <div class="row-fluid">
                    <strong>@item.Username - @item.Action </strong>
                    <div><span class="ticket-comment-time">@item.Date.ToString()</span></div>
                </div>
                <div class="ticket-comment">
                    @if (!string.IsNullOrEmpty(item.Note))
                    {
                        foreach (string s in @item.Note.Split('|'))
                        {
                            <p>@Html.Raw(s)</p>
                        }
                    }
                </div>
            </div>
        </div>
    }
</div>
<div class="modal-footer">
    <button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
